package com.ruoyi.system.domain;


import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import start.spring.basic.ry.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;


/**
 * kafka配置对象 gg_pz_kafka
 * 
 * @author xuyy
 * @date 2023-08-09
 */
@Data
@TableName("gg_pz_kafka")
@ApiModel(value="gg_pz_kafka表映射对象", description="")
public class GgPzKafka implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "kafka唯一标志")
    @TableField("kafka_id")
    private String kafkaId;

    @ApiModelProperty(value = "连接地址")
    @TableField("bootstrap_servers")
    @Excel(name = "连接地址")
    private String bootstrapServers;

    @ApiModelProperty(value = "证书地址")
    @TableField("zsdz")
    @Excel(name = "证书地址")
    private String zsdz;

    @ApiModelProperty(value = "ACK方式")
    @TableField("producer_acks")
    @Excel(name = "ACK方式", readConverterExp = "0=无需确认,1=单节点确认,all=全节点确认")
    private String producerAcks;

    @ApiModelProperty(value = "重试次数")
    @TableField("producer_retries")
    @Excel(name = "重试次数")
    private Integer producerRetries;

    @ApiModelProperty(value = "批次消息数量")
    @TableField("producer_batch_size")
    @Excel(name = "批次消息数量")
    private Integer producerBatchSize;

    @ApiModelProperty(value = "缓冲区大小")
    @TableField("producer_buffer_memory")
    @Excel(name = "缓冲区大小")
    private Integer producerBufferMemory;

	
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("kafkaId", getKafkaId())
            .append("bootstrapServers", getBootstrapServers())
            .append("zsdz", getZsdz())
            .append("producerAcks", getProducerAcks())
            .append("producerRetries", getProducerRetries())
            .append("producerBatchSize", getProducerBatchSize())
            .append("producerBufferMemory", getProducerBufferMemory())
            .toString();
    }
}
